setFontVariationSettings
open fun setFontVariationSettings(@Nullable fontVariationSettings: @Nullable String): Boolean(source)
Set font variation settings. See setFontVariationSettings for details.
Note: Due to performance optimizations, getPaint().getFontVariationSettings()
will be less reliable than if not using AppCompatTextView. You should prefer getFontVariationSettings, which will be more accurate. However, neither approach will work correctly if using Typeface objects with embedded font variation settings.